﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        hideInPanelTab: true,
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'dashboard',
    component: './Welcome',
  },
  {
    path: '/license',
    name: 'license',
    icon: 'CodeSandbox',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/license',
        redirect: '/license/baseInfo',
      },

      // {
      //   path: '/license/baseInfo',
      //   name: 'licenseInfo',
      //   icon: 'smile',
      //   component: './sales/license',
      // },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/license/licenseInfoCus',
        name: 'licenseInfoCus',
        icon: 'smile',
        component: './sales/licenseInfo',
      },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/license/manage',
        name: 'licenseManage',
        icon: 'smile',
        component: './sales/licenseAdm',
      },
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/license/licenseCustom',
        name: 'licenseCustom',
        icon: 'smile',
        component: './sales/licenseCustom',
      },
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/license/licenseOrder',
        name: 'licenseOrder',
        icon: 'smile',
        component: './sales/licenseOrder',
      },
      {
        refresh: true,
        // access: 'normalRouteFilter',
        path: '/license/licenseTree',
        name: 'licenseTree',
        icon: 'smile',
        component: './sales/licenseTree',
      },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/license/detail',
        name: 'licensedetail',
        icon: 'smile',
        hideInMenu: true,
        component: './sales/licenseDetail',
      },
    ],
  },
  {
    path: '/sales',
    name: 'sales',
    icon: 'AccountBookFilled',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/sales',
        redirect: '/sales/salesNeedInfoCustomer',
      },
      {
        access: 'normalRouteFilter',
        refresh: true,
        path: '/sales/salesNeedInfoCustomer',
        name: 'salesNeedInfoCustomer',
        icon: 'smile',
        component: './sales/salesNeedInfoCustomer',
      },
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/sales/salesNeedInfoDetail',
        name: 'salesNeedInfoDetail',
        icon: 'smile',
        component: './sales/salesNeedInfoDetail',
      },
      {
        access: 'normalRouteFilter',
        path: '/sales/technicalSupport',
        refresh: true,
        name: 'technicalSupport',
        icon: 'smile',
        component: './sales/technicalSupport',
      },
      {
        access: 'normalRouteFilter',
        refresh: true,
        path: '/sales/technicalSupportDetail',
        name: 'technicalSupportDetail',
        icon: 'smile',
        component: './sales/technicalSupportDetail',
      },
    ],
  },
  {
    path: '/device',
    name: 'device',
    icon: 'PicCenter',
    access: 'normalRouteFilter',
    routes: [
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/device/deviceInfo',
        name: 'deviceInfo',
        icon: 'smile',
        component: './device/deviceInfo',
      },
      {
        refresh: true,
        // access: 'normalRouteFilter',
        path: '/device/deviceInfoDetail',
        name: 'deviceInfoDetail',
        icon: 'smile',
        component: './device/deviceInfoDetail',
      },
    ],
  },

  {
    path: '/engineer',
    name: 'engineer',
    icon: 'smile',
    access: 'normalRouteFilter',
    routes: [
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/engineer/onsiteSupport',
        name: 'onsiteSupport',
        icon: 'smile',
        component: './sales/onsiteSupport',
      },
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/engineer/onsiteSupportDetail',
        name: 'onsiteSupportDetail',
        icon: 'smile',
        component: './sales/onsiteSupportDetail',
      },
    ],
  },

  //驱动参数库
  {
    path: '/drivepara',
    name: 'paralist',
    icon: 'DeploymentUnit',
    access: 'normalRouteFilter',
    routes: [
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/drivepara/driveparalib',
        name: 'driveparalib',
        icon: 'smile',
        component: './drivepara/driveparalib',
      },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/drivepara/driveparacalculate',
        name: 'driveparacalculate',
        icon: 'smile',
        component: './drivepara/driveparacalculate',
      },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/drivepara/driveparalibEngineer',
        name: 'driveParaLibEngineer',
        icon: 'smile',
        component: './drivepara/driveparalibEngineer',
      },

      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/drivepara/motorParaLib',
        name: 'motorParaLib',
        icon: 'smile',
        component: './drivepara/motorParaLib',
      },
      {
        refresh: true,
        access: 'normalRouteFilter',
        path: '/drivepara/encoderConfig',
        name: 'encoderConfig',
        icon: 'smile',
        component: './drivepara/encoderConfig',
      },
      // {
      //   path: '/drivepara/v90motor',
      //   name: 'v90motor',
      //   icon: 'smile',
      //   component: './drivepara/v90motor',
      // },
      // {
      //   path: '/drivepara/s210motor',
      //   name: 's210motor',
      //   icon: 'smile',
      //   component: './drivepara/s210motor',
      // },
    ],
  },

  {
    path: '/system',
    name: 'system',
    icon: 'windows',
    access: 'canAdmin',
    routes: [
      {
        path: '/system/user',
        name: 'user',
        icon: 'smile',
        component: './system/user',
      },
      {
        path: '/system/role',
        name: 'role',
        icon: 'smile',
        component: './system/role',
      },
      {
        path: '/system/menu',
        name: 'menu',
        icon: 'smile',
        component: './system/menu',
      },

      {
        path: '/system/customer',
        name: 'customer',
        icon: 'smile',
        component: './system/customer',
      },
      {
        path: '/system/customerUser',
        name: 'customerUser',
        icon: 'smile',
        component: './system/customerUser',
        hideInMenu: true,
      },
    ],
  },

  {
    path: '/basicData',
    name: 'basicData',
    icon: 'RadarChart',
    access: 'normalRouteFilter',
    routes: [
      // {
      //   path: '/basicData',
      //   redirect:'/basicData/dictionary',
      //   routes:[
      {
        path: '/basicData/dictionary',
        name: 'dictionary',
        icon: 'smile',
        component: './baseData/dictionary',
      },
      {
        path: '/basicData/dictionaryItem',
        name: 'dictionaryItem',
        icon: 'smile',
        component: './baseData/dictionaryItem',
        hideInMenu: true,
      },
      //   ]
      // },
      {
        path: '/basicData/fileData',
        name: 'fileData',
        icon: 'smile',
        component: './baseData/fileData',
      },

      {
        path: '/basicData/serialNumber',
        name: 'serialNumber',
        icon: 'smile',
        component: './baseData/serialNumber',
      },
      {
        path: '/basicData/serialNumberItem',
        name: 'serialNumberItem',
        icon: 'smile',
        hideInMenu: true,
        component: './baseData/serialNumberItem',
      },
    ],
  },
  {
    name: 'account',
    icon: 'user',
    path: '/account',
    routes: [
      {
        path: '/account',
        redirect: '/account/center',
      },

      {
        access: 'normalRouteFilter',
        name: 'center',
        icon: 'smile',
        path: '/account/center',
        component: './account/center',
      },
      {
        name: 'settings',
        icon: 'smile',
        path: '/account/settings',
        component: './account/settings',
      },
      {
        name: 'chatOnline',
        icon: 'smile',
        path: '/account/chat',
        component: './account/chat',
      },
    ],
  },
  // //order
  // {
  //   path: '/order',
  //   name: 'order',
  //   icon: 'smile',
  //   // access: 'normalRouteFilter',
  //   routes: [
  //     // {
  //     //   path: '/order/orderInfo',
  //     //   name: 'orderinfo',
  //     //   icon: 'smile',
  //     //   component: './order/orderInfo',
  //     // },
  //     {
  //       path: '/order/axisinfo',
  //       name: 'axisinfo',
  //       icon: 'smile',
  //       component: './order/axisinfo',
  //     },
  //   ],
  // },

  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
